package com.echat.business.book.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 首页 大屏广告位 6本书籍
 * </p>
 *
 * @author chentl123
 * @since 2019-06-06
 */
@TableName("echo_rank_bill_board")
public class BillBoard extends Model<BillBoard> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 对应 电子书的 id
     */
    private Integer bookId;
    /**
     * 投资的费用，费用越高越靠前（瞎鸡儿定的，）
     */
    private Integer money;
    /**
     * 公告生成时间
     */
    private Date createTime;
    /**
     * 发布人
     */
    private Integer createby;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateby() {
        return createby;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BillBoard{" +
        ", id=" + id +
        ", bookId=" + bookId +
        ", money=" + money +
        ", createTime=" + createTime +
        ", createby=" + createby +
        "}";
    }
}
